package services;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import javax.annotation.PostConstruct;
import javax.faces.bean.ApplicationScoped;
import javax.faces.bean.ManagedBean;

import modelo.Caracteristicaxsalon;
import modelo.Menu;
import modelo.Servicioadicionalxsalon;
import modelo.Tiposuscripcion;
import dao.CaracteristicaxSalonDao;
import dao.MenuxSalonDao;
import dao.TipoSuscripcionDao;

@ManagedBean(name = "menuxSalonService", eager = true)
@ApplicationScoped
public class MenuxSalonService implements Serializable {

	private static final long serialVersionUID = 8383598490738521475L;
	
	private Menu menuxSalon;
	private List<Menu> listaMenusxSalon;
	private MenuxSalonDao menusxSalonDao;

	public MenuxSalonService() {
		super();
		this.setMenuxSalon(new Menu());
		this.setListaMenusxSalon(new ArrayList<Menu>());
		this.menusxSalonDao = new MenuxSalonDao();

		setListaMenusxSalon(menusxSalonDao.obtenerMenus());
	}

	public Menu getMenuxSalon() {
		return menuxSalon;
	}

	public void setMenuxSalon(Menu menuxSalon) {
		this.menuxSalon = menuxSalon;
	}

	public List<Menu> getListaMenusxSalon() {
		return listaMenusxSalon;
	}

	public void setListaMenusxSalon(List<Menu> listaMenusxSalon) {
		this.listaMenusxSalon = listaMenusxSalon;
	}

	public MenuxSalonDao getMenusxSalonDao() {
		return menusxSalonDao;
	}

	public void setMenusxSalonDao(MenuxSalonDao menusxSalonDao) {
		this.menusxSalonDao = menusxSalonDao;
	}

	public List<Menu> obtenerMenuxSalon(int idSalon){
		return menusxSalonDao.obtenerMenuxSalon(idSalon);
	}
	

}
